<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $cfg['webname'] ;?></title>
<link href="/static/css/base.css" rel="stylesheet" type="text/css">
<script src="/static/js/jquery-1.10.2.min.js"></script>


</head>

<body>
<?php include('header.php');?>

<div class="mainBanner">
<div id="kinMaxShow">
	<?php
    	$rs = dbList("select * from `focus` where display = 1 order by sort asc , id asc ");
		foreach($rs as $v){
			echo "<div><a href=\"{$v['url']}\" target=\"_blank\"><img src=\"{$v['litpic']}\"   /></a></div>";
		}
	?>

    <!--<div><a href="#" target="_blank"><img src="/static/img/banner-01.jpg"   /></a></div>
    <div><a href="#" target="_blank"><img src="/static/img/banner/1.jpg" /></a></div>
    <div><a href="#" target="_blank"><img src="/static/img/banner/2.jpg" /></a></div>
    <div><a href="#" target="_blank"><img src="/static/img/banner/3.jpg" /></a></div>
    <div><a href="#" target="_blank"><img src="/static/img/banner/4.jpg" /></a></div>
    <div><a href="#" target="_blank"><img src="/static/img/banner/5.jpg" /></a></div>
    <div><a href="#" target="_blank"><img src="/static/img/banner/6.jpg" /></a></div>-->
</div>
<script src="/static/js/jquery.kinMaxShow-1.1.min.js"></script>
<script type="text/javascript">
	$(function(){
		$("#kinMaxShow").kinMaxShow({height:500});
	});
</script>
</div>

<div class="indexBody">
	<div class="sidL">
        <div class="iLboxA ibA1">
        	<div class="box-title">
            	<h2><b>通知</b>公告</h2>
                <em>Announcement</em>
                <?php $rs = $DT->getRow(1);?>
                <a href="<?php echo $rs['typeurl']?>" class="more">more</a>
            </div>
            <div class="box-body">
            	<ul>
                	<?php foreach ( $DA->getList(array('tid'=>1 , 'limit' => 5)) as $v ){
						$v['pubtime'] = date('m.d' , $v['pubtime'] );
						echo "<li><i>{$v['pubtime']}</i><a href=\"{$v['arturl']}\">{$v['title']}</a></li>";
					}?>
                	
                </ul>
            </div>
        </div>
        
        <div class="iLboxA ibA2">
        	<div class="box-title">
            	<h2><b>通知</b>公告</h2>
                <em>Announcement</em>
                <?php $rs = $DT->getRow(2);?>
                <a href="<?php echo $rs['typeurl']?>" class="more">more</a>
            </div>
            <div class="box-body">
            	<ul>
                	<?php foreach ( $DA->getList(array('tid'=>1 , 'limit' => 5)) as $v ){
						$v['pubtime'] = date('m.d' , $v['pubtime'] );
						echo "<li><i>{$v['pubtime']}</i><a href=\"{$v['arturl']}\">{$v['title']}</a></li>";
					}?>
                </ul>
            </div>
        </div>
        
        <div class="iLboxA ibA3">
        	<div class="box-title">
            	<h2><b>通知</b>公告</h2>
                <em>Announcement</em>
                <?php $rs = $DT->getRow(2);?>
                <a href="<?php echo $rs['typeurl']?>" class="more">more</a>
            </div>
            <div class="box-body">
            	<ul>
                	<?php foreach ( $DA->getList(array('tid'=>1 , 'limit' => 5)) as $v ){
						$v['pubtime'] = date('m.d' , $v['pubtime'] );
						echo "<li><i>{$v['pubtime']}</i><a href=\"{$v['arturl']}\">{$v['title']}</a></li>";
					}?>
                </ul>
            </div>
        </div>
        
        <div class="iLboxA ibA4">
        	<div class="box-title">
            	<h2><b>通知</b>公告</h2>
                <em>Announcement</em>
                <?php $rs = $DT->getRow(2);?>
                <a href="<?php echo $rs['typeurl']?>" class="more">more</a>
            </div>
            <div class="box-body">
            	<ul>
                	<?php foreach ( $DA->getList(array('tid'=>1 , 'limit' => 5)) as $v ){
						$v['pubtime'] = date('m.d' , $v['pubtime'] );
						echo "<li><i>{$v['pubtime']}</i><a href=\"{$v['arturl']}\">{$v['title']}</a></li>";
					}?>
                </ul>
            </div>
        </div>
        
    </div>
	<div class="sidR">
    	<div class="isrBoxA">
        	<div class="box-title">
				<h2>小陵风光</h2>
                <em>Xiaoiling scenery</em>
                <?php $rs = $DT->getRow(2);?>
                <a href="<?php echo $rs['typeurl']?>" class="more">more</a>
            </div>
            <div class="box-body">
            	<a href="<?php echo $rs['typeurl']?>" title="<?php echo $rs['typename']?>" target="_blank">东陵村位于辽宁省海城市马风镇的最西面，这里距马风镇政府所在地6公里，是一个山田各半的村落...</a>
            </div>
        </div>
        <div class="isrAd">
        	<?php echo  ad('index_ad_1'); ?>
        </div>
    </div>	
</div>


<div class="FLBody">
	<div class="fl-title">
    	<h2><strong>友情</strong>链接</h2>
        <em>Links</em>
    </div>
    <div class="fl-body">
    	<div class="list" id="marquee1" >
        	<ul>
            <?php $rs = dbList("select * from `friendlink` where display = 1  order by sort asc , id asc ");?>
            <?php foreach($rs as $v ):?>
            	<li><a href="<?php echo $v['url']?>" title="<?php echo $v['title']?>" target="_blank"><img src="<?php echo $v['litpic']?>"></a></li>
            <?php endforeach ; ?>
              
            </ul>
        </div>
        <div class="btnL" id="marquee1_btnL"></div>
        <div class="btnR" id="marquee1_btnR"></div>
<script type="text/javascript" src="/static/js/Marquee.js"></script>
<script type="text/javascript">
$(function(){
	//一次横向滚动一个
	$('#marquee1').kxbdSuperMarquee({
		distance:140,
		time:3,
		btnGo:{left:'#marquee1_btnL',right:'#marquee1_btnR'},
		direction:'left'
	});
});

</script>
    </div>
</div>

<?php include('footer.php');?>
</body>
</html>
